<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="创建用户"; ?>
<div class="icon32" id="icon-users"><br>
</div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>创建用户 <a target="<?php echo $arr['target']?>" href="<?php echo $arr['createUser']?>"><?php echo $arr['img']?></a>
<a class="add-new-h2"
	href="<?php echo CController::createUrl('adminUserPanel/index') ?>">管理用户</a>
</h2>
<?php $form=$this->beginWidget('CActiveForm', array(
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<table class="form-table">
		<tr class="form-field form-required">
			<th scope="row">
    			<?php echo $form->labelEx($model,'name'); ?>
    			<span class="description">(必填)</span>
    		</th>
    		<td><?php echo $form->textField($model,'name',array('size'=>45,'maxlength'=>45)); ?></td>
		</tr>

		<tbody>
		<?php $this->widget('CMiniyunPasswdInput', array(
		 "model"=>$model,
		 "passDesc"=>"如果您想修改您的密码，请在此输入新密码。不然请留空。",
		 "form"=>$form
		)); ?>
		<tr class="form-field">
			<th scope="row">
	            <?php echo $form->labelEx($model,'nick'); ?>
    		</th>
    		<td><?php echo $form->textField($model,'nick',array('size'=>45,'maxlength'=>45)); ?></td>
		</tr>
		<tr class="form-field">
			<th scope="row">
	            <?php echo $form->labelEx($model,'email'); ?>
    		</th>
    		<td><?php echo $form->textField($model,'email',array('size'=>45,'maxlength'=>45)); ?></td>
		</tr>
		<tr class="form-field">
			<th scope="row">
	            <?php echo $form->labelEx($model,'space'); ?>
	            <br>
	            <span class="description">(单位：M,1024M=1G)</span>
    		</th>
    		<td><?php echo $form->textField($model,'space'); ?></td>
		</tr>
		<tr class="form-field">
			<th scope="row">
	            <?php echo $form->labelEx($model,'isAdmin'); ?><br>
	            <span class="description">(可对整个系统进行后台管理)</span>
    		</th>
    		<td><?php echo $form->dropDownList($model,"isAdmin",$model->admin_array) ?></td>
		</tr>
	</table>
	<p class="submit">
		<?php echo CHtml::submitButton('添加新用户',array("class"=>"Miniyun_btn01_btn6","onmouseover"=>"this.className='Miniyun_btn01_btn6hover'","onmouseout"=>"this.className='Miniyun_btn01_btn6'")); ?>
	</p>

<?php $this->endWidget(); ?>

